package com.tcat.user.pojo;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@ApiModel(description = "权限 ")
@Data
@Table(name="tb_permissions")
public class Permissions {
    @Id
    @KeySql(useGeneratedKeys = true)
    @Column(name="permission_id")
    private Long id;
    @Column(name="permission_code")
    private String code;
    @Column(name="permission_name")
    private String name;

    public Permissions(Long id, String code, String name) {
        this.id = id;
        this.code = code;
        this.name = name;
    }
}
